package o;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

public class fhh {
    private static Map<Class, Class<? extends fhb>> ˏ = new HashMap();

    static {
        ˏ.put(fkd.class, fhj.class);
        ˏ.put(fjo.class, fhg.class);
    }

    public static fhb ˏ(Class<?> cls) {
        fhb o_fhb;
        for (Entry entry : ˏ.entrySet()) {
            if (((Class) entry.getKey()).isAssignableFrom(cls)) {
                try {
                    o_fhb = (fhb) ((Class) entry.getValue()).newInstance();
                    break;
                } catch (Exception e) {
                    return null;
                }
            }
        }
        o_fhb = null;
        return o_fhb;
    }
}
